import request from '@/utils/request'
export function login(data) {
  return request({
    url: '/api/login',
    method: 'post',
    data,
  })
}

export function reg(data) {
  return request({
    url: '/api/reg',
    method: 'post',
    data,
  })
}

export function getUserinfo() {
  return request({
    url: '/my/userinfo',
    method: 'get',
  })
}

export function getMenus() {
  return request({
    url: '/my/menus',
    method: 'get',
  })
}
